package com.example.carbonbackend.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.carbonbackend.model.dto.massage.MassageQueryRequest;
import com.example.carbonbackend.model.entity.Massage;
import com.example.carbonbackend.model.vo.MassageVO;

import javax.servlet.http.HttpServletRequest;


/**
 * 消息表(Massage)表服务接口
 *
 * @author makejava
 * @since 2024-03-27 21:43:30
 */
public interface MassageService extends IService<Massage> {

    /**
     * 获取查询条件
     *
     * @param massageQueryRequest
     * @return
     */
    QueryWrapper<Massage> getQueryWrapper(MassageQueryRequest massageQueryRequest);

    /**
     * 获取交易记录封装
     *
     * @param massage
     * @param request
     * @return
     */
    MassageVO getMassageVO(Massage massage, HttpServletRequest request);

    /**
     * 分页获取交易记录封装
     *
     * @param massagePage
     * @param request
     * @return
     */
    Page<MassageVO> getMassageVOPage(Page<Massage> massagePage, HttpServletRequest request);
}
